package leetcode.D600.T524;

import java.util.LinkedList;
import java.util.List;

public class M524 {
    public static void main(String[] args) {
        String s = "abpcplea";
        String[] temp = new String[]{"ale","apple","monkey","plea"};
        List<String> d = new LinkedList<>();
        for(String t: temp) {
            d.add(t);
        }
        System.out.println(new Solution().findLongestWord(s, d));
    }
}
